package com.rc.saas.tenant.service.member;


import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.common.vo.TResponse;
import com.rc.saas.tenant.mapper.member.MemberAccountMapper;
import com.rc.saas.tenant.model.member.MemberAccount;
import com.rc.saas.tenant.model.member.MemberAccountExample;
import com.rc.saas.tenant.search.member.MemberAccountSearch;
import com.rc.saas.tenant.vo.member.MemberAccountResult;
import com.rc.saas.tenant.vo.member.MemberRechargeVo;

import java.math.BigDecimal;

public interface MemberAccountService extends BaseService<Long, MemberAccount, MemberAccountExample, MemberAccountMapper> {
    //Long insertReturnId(MemberAccount memberAccount);

    /**
     * 会员充值，参考瑞晨后台updateMemberAccountBy2Tel
     * @param memberRecharge
     */
    void saveMemberRecharge(MemberRechargeVo memberRecharge);

    void updateMemberAccountByMigrateId(MemberAccount memberAccount);

    TResponse saveEnterpriseAmount(Long enterpriseMemberId, Long enterpriseSubmemberId, BigDecimal enterpriseAccount);

    PageInfo<MemberAccountResult> searchByCondition(MemberAccountSearch memberAccountSearch);

}
